package com.changgou.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("order")
@RequestMapping("/cart")
public interface CartFeign {
    @GetMapping("/addGoodsToCart")
    public void addGoodsToCart(@RequestParam(name = "skuId") String skuId,@RequestParam(name = "num") Integer num);
    @GetMapping("/findCartList")
    public Map findCartList();
    /**更新复选框选中状态*/
    @GetMapping("/updateChecked")
    void updateChecked(@RequestParam(name = "skuId")String skuId,@RequestParam(name = "checked") boolean checked);
    /**查询结算页面需要的商品列表和金额，数量*/
    @GetMapping("/findReadyCartList")
    Map findReadyCartList();

}
